Marvin Bagley III had 22 points off the bench, Naji Marshall scored 21 points, and Brandon Marshall had 19 points with 10 assists as the Dallas Mavericks secured a 123-114 win over the Brooklyn Nets.